/*
 * @Author: yyyyjinying
 * @Date: 2024-07-29 22:56:52
 * @LastEditTime: 2024-07-29 22:56:52
 * @LastEditors: yyyyjinying
 * @Description:
 * @FilePath: /heima-shop/src/services/goods.ts
 * 可以输入预定的版权声明、个性签名、空行等
 */

/**
 * 商品详情
 * @param id 商品id
 */
import type { GoodsResult } from '@/types/goods'
import { request } from '@/utils/http'
export const getGoodsByIdAPI = (id: string) => {
  return request<GoodsResult>({
    method: 'GET',
    url: '/goods',
    data: { id },
  })
}
